//
//  TYZNetworkPrivate.h
//  DrivieSchoolStudents
//
//  Created by TangBin on 2019/5/29.
//  Copyright © 2019 班文政. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TYZBaseRequest.h"
#import "TYZRequest.h"
#import "TYZNetworkAgent.h"

NS_ASSUME_NONNULL_BEGIN

@interface TYZNetworkUtils : NSObject
+ (BOOL)validateJSON:(id)json withValidator:(id)jsonValidator;

+ (void)addDoNotBackupAttribute:(NSString *)path;

+ (NSString *)md5StringFromString:(NSString *)string;

+ (NSString *)appVersionString;

+ (NSStringEncoding)stringEncodingWithRequest:(TYZBaseRequest *)request;

+ (BOOL)validateResumeData:(NSData *)data;

@end

@interface TYZRequest (Getter)
- (NSString *)cacheBasePath;
@end

@interface TYZBaseRequest (Setter)

@property (nonatomic, strong, readwrite) NSURLSessionTask *requestTask;
@property (nonatomic, strong, readwrite, nullable) NSData *responseData;
@property (nonatomic, strong, readwrite, nullable) id responseJSONObject;
@property (nonatomic, strong, readwrite, nullable) id responseObject;
@property (nonatomic, strong, readwrite, nullable) NSString *responseString;
@property (nonatomic, strong, readwrite, nullable) NSError *error;

@end

@interface TYZNetworkAgent (Private)

//- (AFHTTPSessionManager *)manager;
//- (void)resetURLSessionManager;
//- (void)resetURLSessionManagerWithConfiguration:(NSURLSessionConfiguration *)configuration;
//- (NSString *)incompleteDownloadTempCacheFolder;

@end

@interface TYZNetworkPrivate : NSObject



@end

NS_ASSUME_NONNULL_END
